<div id="container" class="container">
<?php if ($is_admin): ?>
        <div class="genders view">
        <h2><?php  echo __('Gender'); ?></h2>
                <dl>
                        <dt><?php echo __('Id'); ?></dt>
                        <dd>
                                <?php echo h($gender['Gender']['id']); ?>
                                &nbsp;
                        </dd>
                        <dt><?php echo __('Name'); ?></dt>
                        <dd>
                                <?php echo h($gender['Gender']['name']); ?>
                                &nbsp;
                        </dd>
                </dl>
        </div>
        <div class="actions">
                <h3><?php echo __('Actions'); ?></h3>
                <ul>
                        <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('Edit Gender'), array('action' => 'edit', $gender['Gender']['id'])); ?> </li>
                        <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Form->postLink(__('Delete Gender'), array('action' => 'delete', $gender['Gender']['id']), null, __('Are you sure you want to delete # %s?', $gender['Gender']['id'])); ?> </li>
                        <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('List Genders'), array('action' => 'index')); ?> </li>
                        <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Gender'), array('action' => 'add')); ?> </li>
                        <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('List Customers'), array('controller' => 'customers', 'action' => 'index')); ?> </li>
                        <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Customer'), array('controller' => 'customers', 'action' => 'add')); ?> </li>
                </ul>
        </div>
        <div class="related">
                <h3><?php echo __('Related Customers'); ?></h3>
                <?php if (!empty($gender['Customer'])): ?>
                <table cellpadding = "0" cellspacing = "0" class="table table-striped table-bordered">
                <tr>
                        <th><?php echo __('Id'); ?></th>
                        <th><?php echo __('First Name'); ?></th>
                        <th><?php echo __('Last Name'); ?></th>
                        
                        <th><?php echo __('Username'); ?></th>
                        
                        <th><?php echo __('Email'); ?></th>
                        ; ?></th>
                </tr>
                <?php
                        $i = 0;
                        foreach ($gender['Customer'] as $customer): ?>
                        <tr>
                                <td><?php echo $customer['id']; ?></td>
                                <td><?php echo $customer['first_name']; ?></td>
                                <td><?php echo $customer['last_name']; ?></td>
                                
                                <td><?php echo $customer['username']; ?></td>
                                
                                <td><?php echo $customer['email']; ?></td>
                                
                                <td class="actions">
                                        <?php echo $this->Html->link(__('View'), array('controller' => 'customers', 'action' => 'view', $customer['id'])); ?>
                                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'customers', 'action' => 'edit', $customer['id'])); ?>
                                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'customers', 'action' => 'delete', $customer['id']), null, __('Are you sure you want to delete # %s?', $customer['id'])); ?>
                                </td>
                        </tr>
                <?php endforeach; ?>
                </table>
        <?php endif; ?>

                <div class="actions">
                        <ul>
                                <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Customer'), array('controller' => 'customers', 'action' => 'add')); ?> </li>
                        </ul>
                </div>
        </div>
<?php else: ?>
        <p>YOU ARE NOT SUPPOSED TO VIEW THIS PAGE!!!</p>
<?php endif; ?>
</div>